package com.jcb.countfrench.presenter;


import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.view.View;

import com.jcb.countfrench.MainActivity;
import com.jcb.countfrench.dao.CountFrenchDAO;
import com.jcb.countfrench.model.Quizz;
import com.jcb.countfrench.model.User;

public class QuizzChoicePresenter {
	private User user ;
	private CountFrenchDAO countFrenchDAO ;
	Context context ;
	MainActivity mainActivity ;
	static int counter = 0 ;
	
	 public QuizzChoicePresenter(User user, CountFrenchDAO countFrenchDAO, Context context, MainActivity mainActivity) {
		super();
		this.user = user;
		this.countFrenchDAO = countFrenchDAO;
		this.context = context;
		this.mainActivity = mainActivity ;
	}

	public void switchView(View v) {
		mainActivity.setContentView(v);
	}
	

	public void setLearningView() {
		mainActivity.setContentView(mainActivity.getLearnView());
	}
	
	
	public List<Quizz> getListQuizz() {
		return countFrenchDAO.getListQuizz() ;
	}
	
	
}
